package com.dyna.cp.mybatis.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dyna.constants.DateFatter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description demo_user
 * @author zcw
 * @date 2024-08-29
 */
@Data
@ApiModel("demo_user")
public class DemoUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户id     primary key")
    private Integer id;


    @ApiModelProperty("姓名")
    private String name;


    @ApiModelProperty("性别")
    private Integer sex;


    @ApiModelProperty("出生日期")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime birthDate;


    @ApiModelProperty("出生地点")
    private String birthArea;


    @ApiModelProperty("身份证")
    private String idNumber;


    @ApiModelProperty("手机号")
    private String phoneNumber;


    @ApiModelProperty("网站")
    private String website;


    @ApiModelProperty("头像")
    private String avatar;


    @ApiModelProperty("用户uuid")
    private String uuid;

}